package com.aprivate.kn.ratingsystem.daoBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by kenan on 2018/11/27.
 */
@Entity
public class User {
    @Id(autoincrement = false)
    private Long id;
    private String userName;
    private String passWord;
    private String userId;
    private String userType;//用户类型 0 管理员 1安技服人员 2建设单位人员
    private String userToken;//用户接口访问标识 需放入header中
    private boolean isAutoLogin;

    @Generated(hash = 2067153769)
    public User(Long id, String userName, String passWord, String userId,
            String userType, String userToken, boolean isAutoLogin) {
        this.id = id;
        this.userName = userName;
        this.passWord = passWord;
        this.userId = userId;
        this.userType = userType;
        this.userToken = userToken;
        this.isAutoLogin = isAutoLogin;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public boolean isAutoLogin() {
        return isAutoLogin;
    }

    public void setAutoLogin(boolean autoLogin) {
        isAutoLogin = autoLogin;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public boolean getIsAutoLogin() {
        return this.isAutoLogin;
    }

    public void setIsAutoLogin(boolean isAutoLogin) {
        this.isAutoLogin = isAutoLogin;
    }
}
